package com.atguigu.spark;

import java.util.Random;

/**
 * Author: Felix
 * Date: 2020/5/11
 * Desc:
 */
public class TestRandom {
    public static void main(String[] args) {
        Random r1 = new Random(10);
        for (int i = 0; i < 5; i++) {
            System.out.println(r1.nextInt(10));
        }
        System.out.println("--------------------");
        Random r2 = new Random(10);
        for (int i = 0; i < 5; i++) {
            System.out.println(r2.nextInt(10));
        }
    }
}
